﻿<Window x:Class="PwdMgrUI.RegisterWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             Title="Register" MinHeight="300" MinWidth="300" MaxWidth="480" MaxHeight="640"
             WindowStartupLocation="CenterScreen">
    <Grid>
        <StackPanel Orientation="Vertical">
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Style="{StaticResource STBLK_Global}"
                           HorizontalAlignment="Right"
                           Text="Username:"
                           Grid.Column="0"
                           Margin="0,0,10,0" />
                <TextBox Style="{StaticResource STBOX_Global}"
                         Name="tbox_Username"
                         Text="{Binding Path=Username, Mode=TwoWay}"
                         Grid.Column="1" />
            </Grid>
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Style="{StaticResource STBLK_Global}"
                           Text="Password:"
                           HorizontalAlignment="Right"
                           Grid.Column="0"
                           Margin="0,0,10,0" />
                <PasswordBox Style="{StaticResource SPBOX_Global}"
                             Name="pbox_Pwd"
                             Grid.Column="1" />
            </Grid>
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Style="{StaticResource STBLK_Global}"
                           HorizontalAlignment="Right"
                           Text="Confirm Password:"
                           Grid.Column="0"
                           Margin="0,0,10,0" />
                <PasswordBox Style="{StaticResource SPBOX_Global}"
                             Name="pbox_CfmPwd"
                             Grid.Column="1" />
            </Grid>
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Style="{StaticResource STBLK_Global}" HorizontalAlignment="Right"
                           Text="Email:" Grid.Column="0" Margin="0,0,10,0" />
                <TextBox Style="{StaticResource STBOX_Global}"
                         Name="tbox_Email"
                         Text="{Binding Path=Email, Mode=TwoWay}"
                         Grid.Column="1" />
            </Grid>
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Style="{StaticResource STBLK_Global}" HorizontalAlignment="Right"
                           Text="Question:" Grid.Column="0" Margin="0,0,10,0" />
                <ComboBox MinWidth="100"
                          MaxWidth="200"
                          HorizontalAlignment="Left"
                          Grid.Column="1"
                          ItemsSource="{Binding Path=Questions}"
                          SelectedValue="{Binding Path=Question}"
                          Name="cbox_Question">
                </ComboBox>
            </Grid>
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Style="{StaticResource STBLK_Global}" HorizontalAlignment="Right"
                           Text="Answer:" Grid.Column="0" Margin="0,0,10,0" />
                <TextBox Style="{StaticResource STBOX_Global}"
                         Name="tbox_Answer"
                         Text="{Binding Path=Answer, Mode=TwoWay}"
                         Grid.Column="1" />
            </Grid>
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Button Style="{StaticResource SBTN_Global}" 
                        Grid.Column="0" 
                        HorizontalAlignment="Right"
                        Name="btn_Submit"
                        Command="{Binding Path=OKCommand}"
                        Content="OK" />
                <Button Style="{StaticResource SBTN_Global}"
                        Grid.Column="1"
                        HorizontalAlignment="Left"
                        Name="btn_Cancel"
                        Content="Cancel" />
            </Grid>
        </StackPanel>
    </Grid>
</Window>